package com.ruoyi.weldinganalysis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.weldinganalysis.mapper.WeldingAnalysisOperatorMapper;
import com.ruoyi.weldinganalysis.domain.WeldingAnalysisOperator;
import com.ruoyi.weldinganalysis.service.IWeldingAnalysisOperatorService;
import com.ruoyi.common.core.text.Convert;

/**
 * 人员焊接数据Service业务层处理
 * 
 * @author dai
 * @date 2022-12-12
 */
@Service
public class WeldingAnalysisOperatorServiceImpl implements IWeldingAnalysisOperatorService 
{
    @Autowired
    private WeldingAnalysisOperatorMapper weldingAnalysisOperatorMapper;

    /**
     * 查询人员焊接数据
     * 
     * @param id 人员焊接数据主键
     * @return 人员焊接数据
     */
    @Override
    public WeldingAnalysisOperator selectWeldingAnalysisOperatorById(Long id)
    {
        return weldingAnalysisOperatorMapper.selectWeldingAnalysisOperatorById(id);
    }

    /**
     * 查询人员焊接数据列表
     * 
     * @param weldingAnalysisOperator 人员焊接数据
     * @return 人员焊接数据
     */
    @Override
    public List<WeldingAnalysisOperator> selectWeldingAnalysisOperatorList(WeldingAnalysisOperator weldingAnalysisOperator)
    {
        return weldingAnalysisOperatorMapper.selectWeldingAnalysisOperatorList(weldingAnalysisOperator);
    }

    /**
     * 新增人员焊接数据
     * 
     * @param weldingAnalysisOperator 人员焊接数据
     * @return 结果
     */
    @Override
    public int insertWeldingAnalysisOperator(WeldingAnalysisOperator weldingAnalysisOperator)
    {
        return weldingAnalysisOperatorMapper.insertWeldingAnalysisOperator(weldingAnalysisOperator);
    }

    /**
     * 修改人员焊接数据
     * 
     * @param weldingAnalysisOperator 人员焊接数据
     * @return 结果
     */
    @Override
    public int updateWeldingAnalysisOperator(WeldingAnalysisOperator weldingAnalysisOperator)
    {
        return weldingAnalysisOperatorMapper.updateWeldingAnalysisOperator(weldingAnalysisOperator);
    }

    /**
     * 批量删除人员焊接数据
     * 
     * @param ids 需要删除的人员焊接数据主键
     * @return 结果
     */
    @Override
    public int deleteWeldingAnalysisOperatorByIds(String ids)
    {
        return weldingAnalysisOperatorMapper.deleteWeldingAnalysisOperatorByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除人员焊接数据信息
     * 
     * @param id 人员焊接数据主键
     * @return 结果
     */
    @Override
    public int deleteWeldingAnalysisOperatorById(Long id)
    {
        return weldingAnalysisOperatorMapper.deleteWeldingAnalysisOperatorById(id);
    }
}
